package com.atguigu.springcloud.alibaba.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.atguigu.springcloud.entities.CommonResult;
import com.atguigu.springcloud.entities.Payment;

/**
 * @author JayChan
 * @Description
 * @create 2021-12-09 10:45 PM
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception){
        return new CommonResult(444,"全局的handler处理器111",new Payment(2020L,"serial001"));

    }


    public static CommonResult handlerException2(BlockException exception){
        return new CommonResult(444,"全局的handler处理器222",new Payment(2020L,"serial001"));

    }

}
